package org.kabeja.dxf.entity;

import org.kabeja.dxf.DXFConstants;
import org.kabeja.dxf.helpers.Point;
import org.kabeja.dxf.helpers.Vector;

/**
 * @author shutao
 * @since 2022/4/25 9:18
 */
public class DXFRay extends DXFEntity {
    protected Point basePoint = new Point();
    protected Vector direction = new Vector();

    public DXFRay() {
        this.setLineType(this.getType());
    }

    @Override
    public Bounds getBounds() {
        Bounds var1 = new Bounds();
        var1.addToBounds(this.basePoint);
        return var1;
    }

    @Override
    public String getType() {
        return DXFConstants.ENTITY_TYPE_RAY;
    }

    public Point getBasePoint() {
        return this.basePoint;
    }

    public void setBasePoint(Point var1) {
        this.basePoint = var1;
    }

    public Vector getDirection() {
        return this.direction;
    }

    public void setDirection(Vector var1) {
        this.direction = var1;
    }

    @Override
    public double getLength() {
        return 0.0D;
    }
}
